package com.heima.controller;


import com.heima.pojo.vo.ChannelVo;
import com.heima.service.IChannelService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 售货机货道表 前端控制器
 * </p>
 *
 * @author xjy
 * @since 2024-06-11
 */
@RestController
@RequestMapping("/vm-service/channel")
public class ChannelController {

    @Autowired
    private IChannelService channelService;

    @GetMapping("/channelList/{innerCode}")
    @ApiOperation("货道列表")
    public List<ChannelVo> channelList(@PathVariable String innerCode) {
        return channelService.channelList(innerCode);
    }
}
